package com.zzq.service.impl;

import com.zzq.mapper.MessageMapper;
import com.zzq.pojo.Message;
import com.zzq.service.MessageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MessageServiceImpl implements MessageService {

    @Autowired
    private MessageMapper messageMapper;

    @Override
    public List<Message> getMessageList() {
        return messageMapper.getMessageList();
    }

    @Override
    public void deleteMessage(int id) {
        messageMapper.deleteMessage(id);
    }

    @Override
    public void addMessage(Message message) {
        messageMapper.addMessage(message);
    }
}
